J2K: use of new syntax for class intialization blocks
This commit is contained in:
@@ -5,7 +5,7 @@ package test
|
||||
public class Test(str: String) {
|
||||
var myStr = "String2"
|
||||
|
||||
{
|
||||
init {
|
||||
myStr = str
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package test
|
||||
public class Test(str: String?) {
|
||||
var myStr: String? = "String2"
|
||||
|
||||
{
|
||||
init {
|
||||
myStr = str
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user