Files
kotlin-fork/compiler/testData/codegen/box
Svetlana Isakova 9d366cb896 Prohibit local objects and enum classes
#KT-5402 Fixed
  #KT-4838 Fixed

Resolve type of object inside local object as special, not supertype('Any').
Changed visibility of constructor of anonymous object to 'internal' to be able to resolve the following:
fun box(): String {
    var foo = object {
        val bar = object {
            val baz = "ok"
        }
    }
    return foo.bar.baz
}
The containing declaration of property initializers is constructor, so 'baz' was invisible inside private constructor.
2014-09-01 12:32:52 +04:00
..
2013-12-17 15:00:30 +04:00
2013-06-25 18:48:20 +04:00
2014-07-25 17:16:40 +04:00
2014-08-13 17:19:55 +04:00
2014-07-25 17:16:40 +04:00
2013-01-31 18:54:37 +04:00