Tests for KT-4252: Error generating primary constructor with kind OwnerKind
#KT-4252 Obsolete
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
class CallbackBlock {}
|
||||
|
||||
public class Foo
|
||||
{
|
||||
class object {
|
||||
private var bar = 0
|
||||
}
|
||||
|
||||
{
|
||||
++bar
|
||||
}
|
||||
|
||||
fun getBar(): Int = bar
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
|
||||
val foo = Foo()
|
||||
|
||||
if (foo.getBar() != 1) return "Fail";
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user