Add a quick fix for NO_CONSTRUCTOR error on 'expect' annotation entry
#KT-20718 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
d846a22e33
commit
7be5410877
@@ -0,0 +1,8 @@
|
||||
// "Add default constructor to expect class" "true"
|
||||
// ENABLE_MULTIPLATFORM
|
||||
// ERROR: Expected annotation class 'Foo' has no actual declaration in module light_idea_test_case for JVM
|
||||
|
||||
expect annotation class Foo
|
||||
|
||||
@Foo<caret>
|
||||
fun bar() {}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Add default constructor to expect class" "true"
|
||||
// ENABLE_MULTIPLATFORM
|
||||
// ERROR: Expected annotation class 'Foo' has no actual declaration in module light_idea_test_case for JVM
|
||||
|
||||
expect annotation class Foo()
|
||||
|
||||
@Foo
|
||||
fun bar() {}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Add default constructor to expect class" "true"
|
||||
// ENABLE_MULTIPLATFORM
|
||||
// ERROR: Expected annotation class 'Foo' has no actual declaration in module light_idea_test_case for JVM
|
||||
|
||||
expect annotation class Foo
|
||||
|
||||
@Foo()<caret>
|
||||
fun bar() {}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Add default constructor to expect class" "true"
|
||||
// ENABLE_MULTIPLATFORM
|
||||
// ERROR: Expected annotation class 'Foo' has no actual declaration in module light_idea_test_case for JVM
|
||||
|
||||
expect annotation class Foo()
|
||||
|
||||
@Foo()
|
||||
fun bar() {}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Add default constructor to expect class" "false"
|
||||
// ENABLE_MULTIPLATFORM
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Remove constructor call
|
||||
// ERROR: Expected annotation class 'Foo' has no actual declaration in module light_idea_test_case for JVM
|
||||
// ERROR: This class does not have a constructor
|
||||
expect annotation class Foo
|
||||
|
||||
@Foo("")<caret>
|
||||
fun bar() {}
|
||||
Reference in New Issue
Block a user