cedric
11/30/2016, 8:41 PMKirill Zhukov
11/30/2016, 8:46 PMb
resolved in this example, but isn’t not in the next one:okkero
11/30/2016, 8:47 PMokkero
11/30/2016, 8:49 PMA a = new A() {private final int b = 1; /*with getter*/};
Kirill Zhukov
11/30/2016, 8:49 PMokkero
11/30/2016, 8:50 PMokkero
11/30/2016, 8:51 PMcedric
11/30/2016, 8:52 PM:object A()
is very different from : A()
Kirill Zhukov
11/30/2016, 8:57 PMKirill Zhukov
11/30/2016, 8:57 PMfoo3()
to a
object. My first intuition was:Kirill Zhukov
11/30/2016, 8:59 PMfoo3()
isn’t resolved, I can do it this way, but then I have to import Foo
again...okkero
11/30/2016, 8:59 PMokkero
11/30/2016, 8:59 PMKirill Zhukov
11/30/2016, 9:00 PMKirill Zhukov
11/30/2016, 9:00 PMKirill Zhukov
11/30/2016, 9:02 PMKirill Zhukov
11/30/2016, 9:03 PMFoo
object here inside of the Foo
functionokkero
11/30/2016, 9:04 PMKirill Zhukov
11/30/2016, 9:05 PMKirill Zhukov
11/30/2016, 9:05 PMokkero
11/30/2016, 9:06 PMokkero
11/30/2016, 9:06 PMKirill Zhukov
11/30/2016, 9:06 PMFoo
object, right?