compiler testdata: s/trait/interface

This commit is contained in:
Dmitry Jemerov
2015-05-12 12:38:49 +02:00
parent a5ed5d4269
commit 4bdf598bfe
803 changed files with 1456 additions and 1456 deletions
@@ -8,9 +8,9 @@ fun <T> two(u: T, <!UNUSED_PARAMETER!>v<!>: T): T = u
fun <T> three(<!UNUSED_PARAMETER!>a<!>: T, <!UNUSED_PARAMETER!>b<!>: T, c: T): T = c
trait A
trait B: A
trait C: A
interface A
interface B: A
interface C: A
fun test(a: A, b: B, c: C) {
if (a is B && a is C) {
@@ -1,9 +1,9 @@
trait PsiElement {
interface PsiElement {
fun getText(): String
fun getParent(): PsiElement
}
trait JetExpression : PsiElement
interface JetExpression : PsiElement
fun foo1(e: PsiElement) {
var current: PsiElement? = e
@@ -1,7 +1,7 @@
//KT-4403 Wrong "type mismatch" on smart cast with inference
trait A
trait B : A
interface A
interface B : A
fun <T> T.f(): T = this
@@ -1,6 +1,6 @@
//KT-4415 Class Auto-Cast Bug
trait SelfJson
interface SelfJson
object A {
fun find(<!UNUSED_PARAMETER!>clz<!>:Class<*>){ }
@@ -1,5 +1,5 @@
trait A
trait B
interface A
interface B
class Test {
fun test(a: A?, b: B, list: MutableList<Pair<A, B>>) {