Delete traces of "jet" in test data and unimportant code
This commit is contained in:
@@ -2,7 +2,7 @@ open class X(val s: String)
|
||||
|
||||
fun f(a: String?) {
|
||||
if (a != null) {
|
||||
object : X(<!DEBUG_INFO_SMARTCAST!>a<!>) { // Type mismatch: inferred type is jet.String? but jet.String was expected
|
||||
object : X(<!DEBUG_INFO_SMARTCAST!>a<!>) { // Type mismatch: inferred type is kotlin.String? but kotlin.String was expected
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ public fun foo<E>(array: Array<E>): Array<E> = array
|
||||
public fun test()
|
||||
{
|
||||
val x = foo(array(1, 2, 3, 4, 5)) // Should infer type 'Int'
|
||||
// ^--- public final fun <T : jet.Any? > array(vararg t : DONT_CARE) : jet.Array<DONT_CARE> defined in Kotlin
|
||||
// ^--- public final fun <E : jet.Any? > foo(items t : jet.Array<DONT_CARE>) : jet.Array<DONT_CARE> defined in root package
|
||||
// ^--- public final fun <T : kotlin.Any? > array(vararg t : DONT_CARE) : kotlin.Array<DONT_CARE> defined in Kotlin
|
||||
// ^--- public final fun <E : kotlin.Any? > foo(items t : kotlin.Array<DONT_CARE>) : kotlin.Array<DONT_CARE> defined in root package
|
||||
x : Array<Int>
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ fun test() {
|
||||
val mapperFunction = {(i: Int)-> }
|
||||
SomeTemplate().query(mapperFunction)
|
||||
|
||||
// TYPE_MISMATCH: Required Class<[ERROR: CANT_INFER]>, Found (jet.Int) -> Unit
|
||||
// TYPE_MISMATCH: Required Class<[ERROR: CANT_INFER]>, Found (kotlin.Int) -> Unit
|
||||
SomeTemplate().query {(i: Int)-> }
|
||||
SomeTemplate().query1 {(i: Int)-> }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//KT-2394 java.lang.Iterable<T> should be visible as jet.Iterable<out T>
|
||||
//KT-2394 java.lang.Iterable<T> should be visible as kotlin.Iterable<out T>
|
||||
package d
|
||||
|
||||
fun foo(iterable: Iterable<Int>, iterator: Iterator<Int>, comparable: Comparable<Any>) {
|
||||
|
||||
@@ -2,10 +2,10 @@ fun main(args: Array<String>) {
|
||||
val b: Boolean? = null
|
||||
if (b != null) {
|
||||
if (!<!DEBUG_INFO_SMARTCAST!>b<!>) {} // OK
|
||||
if (<!DEBUG_INFO_SMARTCAST!>b<!>) {} // Error: Condition must be of type jet.Boolean, but is of type jet.Boolean?
|
||||
if (b<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>) {} // WARN: Unnecessary non-null assertion (!!) on a non-null receiver of type jet.Boolean?
|
||||
if (<!DEBUG_INFO_SMARTCAST!>b<!>) {} // Error: Condition must be of type kotlin.Boolean, but is of type kotlin.Boolean?
|
||||
if (b<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>) {} // WARN: Unnecessary non-null assertion (!!) on a non-null receiver of type kotlin.Boolean?
|
||||
foo(<!DEBUG_INFO_SMARTCAST!>b<!>) // OK
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(a: Boolean) = a
|
||||
fun foo(a: Boolean) = a
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// FILE: main.kt
|
||||
//KT-2376 java.lang.Number should be visible in Kotlin as jet.Number
|
||||
//KT-2376 java.lang.Number should be visible in Kotlin as kotlin.Number
|
||||
fun main(args: Array<String>) {
|
||||
Test().number(5.toInt())
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ object A {
|
||||
fun toJson2(obj:Any){
|
||||
if(obj is SelfJson){
|
||||
// A.find( (obj as SelfJson).javaClass) // OK
|
||||
A.find( <!DEBUG_INFO_SMARTCAST!>obj<!>.javaClass ) // ERROR: Type mismatch: inferred type is jet.Any but SelfJson was expected
|
||||
A.find( <!DEBUG_INFO_SMARTCAST!>obj<!>.javaClass ) // ERROR: Type mismatch: inferred type is kotlin.Any but SelfJson was expected
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user