Capturing this in constructor context

KT-4086 VerifyError creating anonymous object in constructor
 #KT-4086 Fixed
This commit is contained in:
Mikhael Bogdanov
2013-10-30 14:37:42 +04:00
parent 936c0a0ae9
commit 318214b9d7
4 changed files with 28 additions and 9 deletions
@@ -0,0 +1,12 @@
trait N
open class Base(n: N)
class Derived : Base(object: N{}) {
}
fun box() : String {
Derived()
return "OK"
}