Quick Fixes: Implement 'Add val/var to primary constructor parameter' quick-fix for data classes
#KT-4038 Fixed
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
class Foo(n: Int, <spot>val s</spot>: String)
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Foo(n: Int, <spot>s</spot>: String)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention adds val/var keyword to the primary constructor parameter effectively making it a property.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user