Can you please attach a screenshot of the error? I cannot reproduce the
issue with the example you provided.

Thanks,
-Alex

On Fri, Dec 5, 2014 at 7:41 AM, Vyacheslav Blinov <
blinov.vyaches...@gmail.com> wrote:

> I'm writing it here because I don't see the same issue with latest IDEA. I
> have a class that roughly looks like this:
>
> class MyClass {
>     public static final Supplier<String> stuff = new Supplier <String> {
>         public String get() {
>             return "stuff";
>         }
>     }
>
>     public String stuff() {
>         return "other stuff";
>     }
> }
>
> /// ... later somewhere:
>
> MyClass myClass = new MyClass();
> myClass.stuff();
>
> Javac correctly distinguishes between method call and member as well as
> IDEA and Eclipse, but Android Studio marks this as error "method call
> expected".
>
> P.S. I know it is not the best coding style, but there are many much more
> weird examples, so face it, people write strange code sometimes.
>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to adt-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adt-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to