Merge pull request #205 from lopekpl/SUPERTYPE_NOT_INITIALIZED

SUPERTYPE_NOT_INITIALIZED_DEFAULT error removed
This commit is contained in:
Natalia Ukhorskaya
2013-02-21 23:06:06 -08:00
14 changed files with 79 additions and 30 deletions
@@ -0,0 +1,3 @@
// "Change to constructor invocation" "true"
open class A(x : Int = 42, vararg y : Int) {}
class B() : A<caret>() {}
@@ -0,0 +1,3 @@
// "Change to constructor invocation" "true"
open class A() {}
class B() : A<caret>() {}
@@ -0,0 +1,4 @@
// "Change to constructor invocation" "false"
// ERROR: This type has a constructor, and thus must be initialized here
open class A(x : Int) {}
class B : A<caret> {}
@@ -0,0 +1,3 @@
// "Change to constructor invocation" "true"
open class A(x : Int = 42, vararg y : Int) {}
class B() : A<caret> {}
@@ -0,0 +1,3 @@
// "Change to constructor invocation" "true"
open class A() {}
class B() : A<caret> {}