Forbid suspend functions annotated with @kotlin.test.Test
#KT-26200 Fixed
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// SKIP_TXT
|
||||
// FILE: test.kt
|
||||
|
||||
package kotlin.test
|
||||
|
||||
annotation class IrrelevantClass
|
||||
|
||||
public typealias Test = IrrelevantClass
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
import kotlin.test.Test
|
||||
|
||||
class A {
|
||||
@Test
|
||||
<!UNSUPPORTED!>suspend<!> fun test() {}
|
||||
}
|
||||
|
||||
@Test
|
||||
<!UNSUPPORTED!>suspend<!> fun test() {}
|
||||
Reference in New Issue
Block a user