Files
kotlin/compiler/testData/repl/objects/localObject.repl
2015-09-21 14:41:31 +03:00

8 lines
162 B
Plaintext
Vendored

>>> fun foo() {
... object Bar {
... }
... }
error: named object 'Bar' is a singleton and cannot be local. Try to use anonymous object instead
object Bar {
^