mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
27 lines
1.0 KiB
Plaintext
Vendored
27 lines
1.0 KiB
Plaintext
Vendored
public class SimpleScript {
|
|
public final fun getBarOrNull(@org.jetbrains.annotations.NotNull flag: boolean) : SimpleScript.Bar {
|
|
return if (flag) <init>(42) else null
|
|
}
|
|
public static final fun main(@null p: java.lang.String[]) : void = UastEmptyExpression
|
|
public fun SimpleScript(@null p: java.lang.String[]) {
|
|
println("Hello World!")
|
|
getBarOrNull(true)
|
|
println("Goodbye World!")
|
|
}
|
|
public static final class Bar {
|
|
@org.jetbrains.annotations.NotNull private final var b: int = 0
|
|
@org.jetbrains.annotations.NotNull private final var a: int
|
|
public final fun getB() : int = UastEmptyExpression
|
|
public final fun getAPlusB() : int {
|
|
return a + b
|
|
}
|
|
public final fun getA() : int = UastEmptyExpression
|
|
public fun Bar(@org.jetbrains.annotations.NotNull a: int) = UastEmptyExpression
|
|
public static final class Baz {
|
|
public final fun doSomething() : void {
|
|
}
|
|
public fun Baz() = UastEmptyExpression
|
|
}
|
|
}
|
|
}
|