Don't resolve kotlin constructors from bytecode without JetConstructorAnnotation

This commit is contained in:
Natalia.Ukhorskaya
2012-12-24 14:39:02 +04:00
parent f4a44155d9
commit f0d52e63b2
11 changed files with 86 additions and 2 deletions
@@ -0,0 +1,3 @@
package test
class TestConstructor(p: Int = 1, s: Int)
@@ -0,0 +1,5 @@
namespace test
internal final class test.TestConstructor : jet.Any {
public final /*primary constructor*/ fun <init>(/*0*/ p: jet.Int = ?, /*1*/ s: jet.Int): test.TestConstructor
}
@@ -0,0 +1,3 @@
package test
class TestConstructor(p: Int = 1, d: Int = 1)
@@ -0,0 +1,5 @@
namespace test
internal final class test.TestConstructor : jet.Any {
public final /*primary constructor*/ fun <init>(/*0*/ p: jet.Int = ?, /*1*/ d: jet.Int = ?): test.TestConstructor
}
@@ -0,0 +1,5 @@
package test
class A {
class TestConstructor(p: Int = 1)
}
@@ -0,0 +1,8 @@
namespace test
internal final class test.A : jet.Any {
public final /*primary constructor*/ fun <init>(): test.A
internal final class test.A.TestConstructor : jet.Any {
public final /*primary constructor*/ fun <init>(/*0*/ p: jet.Int = ?): test.A.TestConstructor
}
}
@@ -0,0 +1,3 @@
package test
class TestConstructor private(p: Int = 1)
@@ -0,0 +1,5 @@
namespace test
internal final class test.TestConstructor : jet.Any {
private final /*primary constructor*/ fun <init>(/*0*/ p: jet.Int = ?): test.TestConstructor
}