Tests for KT-4252: Error generating primary constructor with kind OwnerKind

#KT-4252 Obsolete
This commit is contained in:
Mikhael Bogdanov
2013-11-28 10:11:26 +04:00
parent 47d3e2e1bb
commit 35f42b1a65
3 changed files with 63 additions and 0 deletions
@@ -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"
}