compiler testdata: s/trait/interface
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ package test
|
||||
|
||||
annotation class Anno(val s: String)
|
||||
|
||||
trait T {
|
||||
interface T {
|
||||
Anno("foo")
|
||||
fun foo(): Array<Array<Array<T>>>
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@ package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
fun foo([Anno] x: String) = 42
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package test
|
||||
annotation class Anno
|
||||
|
||||
class Class {
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
[Anno] val property: Int
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
[Anno] val property: Int
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package test
|
||||
|
||||
annotation class Anno
|
||||
|
||||
trait Trait {
|
||||
interface Trait {
|
||||
companion object {
|
||||
[Anno] val property: Int
|
||||
get() = 42
|
||||
|
||||
Reference in New Issue
Block a user