compiler testdata: s/trait/interface
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
|
||||
fun <T> foo(t: T<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><String, Int><!>) {}
|
||||
|
||||
trait A
|
||||
interface A
|
||||
class B<T: A>
|
||||
fun <T> foo1(t: T<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><B<<!UPPER_BOUND_VIOLATED!>String<!>>><!>) {}
|
||||
@@ -1,6 +1,6 @@
|
||||
// !DIAGNOSTICS: -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE
|
||||
|
||||
trait Rec<T>
|
||||
interface Rec<T>
|
||||
class A : Rec<A>
|
||||
class B : Rec<B>
|
||||
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@
|
||||
|
||||
object O : Tr<V<*>>
|
||||
|
||||
trait Tr<T>
|
||||
interface Tr<T>
|
||||
|
||||
class V<out S>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !CHECK_TYPE
|
||||
trait Tr<T> {
|
||||
interface Tr<T> {
|
||||
var v: Tr<T>
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_PARAMETER
|
||||
// !CHECK_TYPE
|
||||
// t is unused due to KT-4233
|
||||
trait Tr<T> {
|
||||
interface Tr<T> {
|
||||
var v: T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !DIAGNOSTICS: -UNREACHABLE_CODE
|
||||
trait Tr<T> {
|
||||
interface Tr<T> {
|
||||
var v: T
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !DIAGNOSTICS: -UNREACHABLE_CODE
|
||||
trait Tr<T> {
|
||||
interface Tr<T> {
|
||||
var v: T
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user