Position error on 'class A' or 'object A' instead of name identifier only

This commit is contained in:
Svetlana Isakova
2014-08-12 15:26:42 +04:00
parent ac3528756c
commit f811b9541c
38 changed files with 81 additions and 66 deletions
@@ -2,6 +2,6 @@ open class Required
trait Trait : Required
abstract class <!UNMET_TRAIT_REQUIREMENT!>Abstract<!> : Trait
abstract <!UNMET_TRAIT_REQUIREMENT!>class Abstract<!> : Trait
abstract class <!UNMET_TRAIT_REQUIREMENT!>AbstractDerived<!> : Abstract()
abstract <!UNMET_TRAIT_REQUIREMENT!>class AbstractDerived<!> : Abstract()
@@ -4,5 +4,5 @@ trait A : Generic<Int>
trait B : Generic<String>
class <!UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT!>Y<!> : <!INCONSISTENT_TYPE_PARAMETER_VALUES!>A, B<!>
<!UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT!>class Y<!> : <!INCONSISTENT_TYPE_PARAMETER_VALUES!>A, B<!>
class Z : <!INCONSISTENT_TYPE_PARAMETER_VALUES!>A, B, Generic<Int>()<!>
@@ -7,7 +7,7 @@ trait Derived: Base {
}
}
class <!UNMET_TRAIT_REQUIREMENT!>DerivedImpl()<!>: Derived {}
object <!UNMET_TRAIT_REQUIREMENT!>ObjectImpl<!>: Derived {}
<!UNMET_TRAIT_REQUIREMENT!>class DerivedImpl<!>(): Derived {}
<!UNMET_TRAIT_REQUIREMENT!>object ObjectImpl<!>: Derived {}
fun f1(b: Base) = b
@@ -8,7 +8,7 @@ trait C : Required
trait D : B, Required
class <!UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT!>W<!> : D
<!UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT!>class W<!> : D
class X : D, Required()
class <!UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT!>Y<!> : C, D
<!UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT, UNMET_TRAIT_REQUIREMENT!>class Y<!> : C, D
class Z : D, C, Required()
@@ -4,5 +4,5 @@ trait Trait : RequiredBase
open class RequiredDerived : RequiredBase()
class <!UNMET_TRAIT_REQUIREMENT!>A<!> : Trait
<!UNMET_TRAIT_REQUIREMENT!>class A<!> : Trait
class B : Trait, RequiredDerived()
@@ -4,5 +4,5 @@ trait First : Required
trait Second : First
class <!UNMET_TRAIT_REQUIREMENT!>Y<!> : Second
<!UNMET_TRAIT_REQUIREMENT!>class Y<!> : Second
class Z : Second, Required(":o)")