compiler testdata: s/trait/interface
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait A<T> {
|
||||
interface A<T> {
|
||||
fun run(): T;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package builders
|
||||
import java.util.ArrayList
|
||||
import java.util.HashMap
|
||||
|
||||
trait Element {
|
||||
interface Element {
|
||||
fun render(builder: StringBuilder, indent: String)
|
||||
|
||||
override fun toString(): String {
|
||||
|
||||
@@ -3,7 +3,7 @@ package builders
|
||||
import java.util.ArrayList
|
||||
import java.util.HashMap
|
||||
|
||||
trait Element {
|
||||
interface Element {
|
||||
fun render(builder: StringBuilder, indent: String)
|
||||
|
||||
override fun toString(): String {
|
||||
|
||||
@@ -9,7 +9,7 @@ public class Output(val d: Data) : Closeable {
|
||||
public fun doOutput(data: Int): Int = data
|
||||
}
|
||||
|
||||
public open trait Closeable {
|
||||
public open interface Closeable {
|
||||
open public fun close() {}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ public class Output(val d: Data) : Closeable {
|
||||
public fun doOutput(data: Int): Int = data
|
||||
}
|
||||
|
||||
public open trait Closeable {
|
||||
public open interface Closeable {
|
||||
open public fun close() {}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
public trait MCloseable {
|
||||
public interface MCloseable {
|
||||
public open fun close()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
trait InlineTrait {
|
||||
interface InlineTrait {
|
||||
|
||||
inline final fun finalInline(s: () -> String): String {
|
||||
return s()
|
||||
|
||||
Reference in New Issue
Block a user