compiler testdata: s/trait/interface
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
package a
|
||||
|
||||
trait Super
|
||||
trait Trait : Super
|
||||
interface Super
|
||||
interface Trait : Super
|
||||
class Sub : Trait
|
||||
|
||||
fun foo(f: (Trait) -> Trait) = f
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package h
|
||||
|
||||
//traits to make ambiguity with function literal as an argument
|
||||
trait A
|
||||
trait B
|
||||
trait C: A, B
|
||||
interface A
|
||||
interface B
|
||||
interface C: A, B
|
||||
|
||||
fun foo<T>(<!UNUSED_PARAMETER!>a<!>: A, f: () -> T): T = f()
|
||||
fun foo<T>(<!UNUSED_PARAMETER!>b<!>: B, f: () -> T): T = f()
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
trait A
|
||||
trait B: A
|
||||
trait C: A
|
||||
interface A
|
||||
interface B: A
|
||||
interface C: A
|
||||
|
||||
|
||||
fun test(a: C, b: B) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package m
|
||||
|
||||
trait Element
|
||||
interface Element
|
||||
|
||||
fun test(handlers: Map<String, Element.()->Unit>) {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package m
|
||||
|
||||
trait Element
|
||||
interface Element
|
||||
|
||||
fun test(handlers: Map<String, Element.()->Unit>) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user