Object's constructor is private from frontend point of view.

Test data changed.
Js-backend test objectInObject turned off.
Public constructors for objects hard-coded in jvm-backend.
This commit is contained in:
Pavel V. Talanov
2012-08-28 18:29:38 +04:00
parent a28d78974b
commit e6e6f7e598
7 changed files with 16 additions and 13 deletions
@@ -4,7 +4,7 @@ internal final class test.A : jet.Any {
public final /*constructor*/ fun <init>(): test.A
internal final val B: test.A.B
internal final object test.A.B : jet.Any {
internal final /*constructor*/ fun <init>(): test.A.B
private final /*constructor*/ fun <init>(): test.A.B
internal final fun foo(/*0*/ a: jet.Int): jet.String
}
}
@@ -1,7 +1,7 @@
namespace test
internal final object test.SomeObject : jet.Any {
internal final /*constructor*/ fun <init>(): test.SomeObject
private final /*constructor*/ fun <init>(): test.SomeObject
internal final fun test(/*0*/ a: jet.Int): jet.Int
}
internal final val SomeObject: test.SomeObject
@@ -1,6 +1,6 @@
namespace test
internal final object test.Bar : jet.Any {
internal final /*constructor*/ fun <init>(): test.Bar
private final /*constructor*/ fun <init>(): test.Bar
}
internal final val Bar: test.Bar