Add annotations to primary constructor together with 'constructor'
This fixes incorrect behaviour if primary constructor has no explicit 'constructor' keywork #KT-25548 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Add '@PropertyTypeMarker' annotation to 'PropertyTypeContainer'" "true"
|
||||
// COMPILER_ARGUMENTS: -Xuse-experimental=kotlin.Experimental
|
||||
// WITH_RUNTIME
|
||||
// ACTION: Add '@PropertyTypeMarker' annotation to containing class 'PropertyTypeContainer'
|
||||
|
||||
@Experimental
|
||||
annotation class PropertyTypeMarker
|
||||
|
||||
@PropertyTypeMarker
|
||||
class PropertyTypeMarked
|
||||
|
||||
class PropertyTypeContainer(val subject: Property<caret>TypeMarked)
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Add '@PropertyTypeMarker' annotation to 'PropertyTypeContainer'" "true"
|
||||
// COMPILER_ARGUMENTS: -Xuse-experimental=kotlin.Experimental
|
||||
// WITH_RUNTIME
|
||||
// ACTION: Add '@PropertyTypeMarker' annotation to containing class 'PropertyTypeContainer'
|
||||
|
||||
@Experimental
|
||||
annotation class PropertyTypeMarker
|
||||
|
||||
@PropertyTypeMarker
|
||||
class PropertyTypeMarked
|
||||
|
||||
class PropertyTypeContainer @PropertyTypeMarker constructor(val subject: PropertyTypeMarked)
|
||||
Reference in New Issue
Block a user