mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
24 lines
473 B
Kotlin
Vendored
24 lines
473 B
Kotlin
Vendored
package first
|
|
|
|
import util.*
|
|
|
|
fun test() {
|
|
topLevelFun(topLevelVar)
|
|
topLevelFun(topLevelVal)
|
|
val c = C("ff", 1)
|
|
c.s.<error>invalid</error>
|
|
val <warning>b</warning> = B()
|
|
funWithVararg(1, 2, 3)
|
|
val <warning>i</warning> = Invalid()
|
|
topLevelObject.f()
|
|
topLevelObject.g()
|
|
}
|
|
|
|
fun testWhere(list: List<Int>) {
|
|
funWithWhere(1, list)
|
|
<error>funWithWhere</error>(1, 2)
|
|
}
|
|
|
|
class Example : C("foo", 0)
|
|
class Example2 : <error>A</error>(2)
|