Targeting / retention for a set of standard annotations, some inapplicable annotation checks replaced with target check, some fixed tests
This commit is contained in:
@@ -30,7 +30,7 @@ inline fun test3(state: State) {
|
||||
}
|
||||
}
|
||||
|
||||
noinline fun test(state: State) {
|
||||
fun test(state: State) {
|
||||
test3(state)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -8,7 +8,7 @@ class State() {
|
||||
public var value: Int = 0
|
||||
}
|
||||
|
||||
noinline fun test(state: State) {
|
||||
fun test(state: State) {
|
||||
@inline fun test3() {
|
||||
@inline fun test2() {
|
||||
@inline fun test1() {
|
||||
|
||||
@@ -20,7 +20,7 @@ inline fun testInline(): Int {
|
||||
return c
|
||||
}
|
||||
|
||||
noinline fun testNoinline(): Int {
|
||||
fun testNoinline(): Int {
|
||||
return testInline()
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ inline fun testBreak(): Int {
|
||||
return i
|
||||
}
|
||||
|
||||
noinline fun testBreakNoinline() {
|
||||
fun testBreakNoinline() {
|
||||
assertEquals(4, testBreak(), "break")
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ inline fun testContinue(): Int {
|
||||
return sum
|
||||
}
|
||||
|
||||
noinline fun testContinueNoinline() {
|
||||
fun testContinueNoinline() {
|
||||
assertEquals(6, testContinue(), "continue")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user