Uast: wrapping expression bodies with return and code block (#KT-23557)
This commit is contained in:
committed by
xiexed
parent
66d134ef5c
commit
14ce13315c
+3
-1
@@ -11,7 +11,9 @@ public class SimpleScript {
|
||||
@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 = a + b
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user