compiler testdata: s/trait/interface
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
trait X {
|
||||
interface X {
|
||||
fun f(): Boolean
|
||||
}
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
// KT-4034 An expression of type Nothing may not affect 'definite return' analysis
|
||||
|
||||
trait JavaClassifierType
|
||||
trait TypeUsage
|
||||
trait JetType
|
||||
interface JavaClassifierType
|
||||
interface TypeUsage
|
||||
interface JetType
|
||||
|
||||
private fun transformClassifierType(classifierType: JavaClassifierType, howThisTypeIsUsed: TypeUsage): JetType? {
|
||||
null!!
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//KT-1191 Wrong detection of unused parameters
|
||||
package kt1191
|
||||
|
||||
trait FunctionalList<T> {
|
||||
interface FunctionalList<T> {
|
||||
val size: Int
|
||||
val head: T
|
||||
val tail: FunctionalList<T>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//KT-2226 Parameter used as delegation by object marked as unused
|
||||
package a
|
||||
|
||||
trait A {
|
||||
interface A {
|
||||
fun foo() : Int
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ fun box() {
|
||||
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
|
||||
}
|
||||
|
||||
trait X {
|
||||
interface X {
|
||||
fun f(): Boolean
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user