J2K: use of new syntax for class intialization blocks
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Test {
|
||||
var str: String
|
||||
|
||||
{
|
||||
init {
|
||||
str = "Ola"
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ class Test {
|
||||
companion object {
|
||||
var str: String
|
||||
|
||||
{
|
||||
init {
|
||||
str = "Ola"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user