Renamed *.jet to *.kt in test data of JetPsiCheckerTest.

This commit is contained in:
Evgeny Gerashchenko
2012-11-12 19:23:29 +04:00
parent 8d7e79c806
commit 799a986812
73 changed files with 148 additions and 148 deletions
+33
View File
@@ -0,0 +1,33 @@
package unresolved
class Pair<A, B>(a: A, b: B)
fun testGenericArgumentsCount() {
val <warning>p1</warning>: Pair<error><Int></error> = Pair(2, 2)
val <warning>p2</warning>: <error>Pair</error> = Pair(2, 2)
}
fun testUnresolved() {
if (<error>a</error> is String) {
val <warning>s</warning> = <error>a</error>
}
<error>foo</error>(<error>a</error>)
val s = "s"
<error>foo</error>(s)
foo1(<error>i</error>)
s.<error>foo</error>()
when(<error>a</error>) {
is Int -> <error>a</error>
is String -> <error>a</error>
else -> <error>a</error>
}
for (j in <error>collection</error>) {
var i: Int = j
i += 1
foo1(j)
}
}
fun foo1(<warning>i</warning>: Int) {}