diff --git a/compiler/testData/builtin-classes.txt b/compiler/testData/builtin-classes.txt index 49213867dbf..1082314e80a 100644 --- a/compiler/testData/builtin-classes.txt +++ b/compiler/testData/builtin-classes.txt @@ -12,20 +12,22 @@ public trait Annotation { } public open class Any { - public constructor Any() + /*primary*/ public constructor Any() } public final class Array { - public constructor Array(/*0*/ size: jet.Int, /*1*/ init: (jet.Int) -> T) + /*primary*/ public constructor Array(/*0*/ size: jet.Int, /*1*/ init: (jet.Int) -> T) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): T public final fun iterator(): jet.Iterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: T): jet.Unit } public final class Boolean { - public constructor Boolean() + /*primary*/ public constructor Boolean() public final fun and(/*0*/ other: jet.Boolean): jet.Boolean public final fun equals(/*0*/ other: jet.Any?): jet.Boolean public final fun not(): jet.Boolean @@ -34,23 +36,25 @@ public final class Boolean { } public final class BooleanArray { - public constructor BooleanArray(/*0*/ size: jet.Int) + /*primary*/ public constructor BooleanArray(/*0*/ size: jet.Int) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): jet.Boolean public final fun iterator(): jet.BooleanIterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: jet.Boolean): jet.Unit } public abstract class BooleanIterator : jet.Iterator { - public constructor BooleanIterator() + /*primary*/ public constructor BooleanIterator() public abstract override /*1*/ /*fake_override*/ fun hasNext(): jet.Boolean public open override /*1*/ fun next(): jet.Boolean public abstract fun nextBoolean(): jet.Boolean } public final class Byte : jet.Number, jet.Comparable { - public constructor Byte() + /*primary*/ public constructor Byte() public open override /*1*/ fun compareTo(/*0*/ other: jet.Byte): jet.Int public final fun compareTo(/*0*/ other: jet.Char): jet.Int public final fun compareTo(/*0*/ other: jet.Double): jet.Int @@ -116,45 +120,54 @@ public final class Byte : jet.Number, jet.Comparable { } public final class ByteArray { - public constructor ByteArray(/*0*/ size: jet.Int) + /*primary*/ public constructor ByteArray(/*0*/ size: jet.Int) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): jet.Byte public final fun iterator(): jet.ByteIterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: jet.Byte): jet.Unit } public abstract class ByteIterator : jet.Iterator { - public constructor ByteIterator() + /*primary*/ public constructor ByteIterator() public abstract override /*1*/ /*fake_override*/ fun hasNext(): jet.Boolean public open override /*1*/ fun next(): jet.Byte public abstract fun nextByte(): jet.Byte } public final class ByteProgression : jet.Progression { - public constructor ByteProgression(/*0*/ start: jet.Byte, /*1*/ end: jet.Byte, /*2*/ increment: jet.Int) + /*primary*/ public constructor ByteProgression(/*0*/ start: jet.Byte, /*1*/ end: jet.Byte, /*2*/ increment: jet.Int) public open override /*1*/ val end: jet.Byte + public open override /*1*/ fun (): jet.Byte public open override /*1*/ val increment: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*1*/ val start: jet.Byte + public open override /*1*/ fun (): jet.Byte public open override /*1*/ fun iterator(): jet.ByteIterator } public final class ByteRange : jet.Range, jet.Progression { - public constructor ByteRange(/*0*/ start: jet.Byte, /*1*/ end: jet.Byte) + /*primary*/ public constructor ByteRange(/*0*/ start: jet.Byte, /*1*/ end: jet.Byte) public open override /*2*/ val end: jet.Byte + public open override /*2*/ fun (): jet.Byte public open override /*1*/ val increment: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*2*/ val start: jet.Byte + public open override /*2*/ fun (): jet.Byte public open override /*1*/ fun contains(/*0*/ item: jet.Byte): jet.Boolean public open override /*1*/ fun iterator(): jet.ByteIterator public class object { - private constructor () + /*primary*/ private constructor () public final val EMPTY: jet.ByteRange + public final fun (): jet.ByteRange } } public final class Char : jet.Number, jet.Comparable { - public constructor Char() + /*primary*/ public constructor Char() public final fun compareTo(/*0*/ other: jet.Byte): jet.Int public open override /*1*/ fun compareTo(/*0*/ other: jet.Char): jet.Int public final fun compareTo(/*0*/ other: jet.Double): jet.Int @@ -210,45 +223,55 @@ public final class Char : jet.Number, jet.Comparable { } public final class CharArray { - public constructor CharArray(/*0*/ size: jet.Int) + /*primary*/ public constructor CharArray(/*0*/ size: jet.Int) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): jet.Char public final fun iterator(): jet.CharIterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: jet.Char): jet.Unit } public abstract class CharIterator : jet.Iterator { - public constructor CharIterator() + /*primary*/ public constructor CharIterator() public abstract override /*1*/ /*fake_override*/ fun hasNext(): jet.Boolean public open override /*1*/ fun next(): jet.Char public abstract fun nextChar(): jet.Char } public final class CharProgression : jet.Progression { - public constructor CharProgression(/*0*/ start: jet.Char, /*1*/ end: jet.Char, /*2*/ increment: jet.Int) + /*primary*/ public constructor CharProgression(/*0*/ start: jet.Char, /*1*/ end: jet.Char, /*2*/ increment: jet.Int) public open override /*1*/ val end: jet.Char + public open override /*1*/ fun (): jet.Char public open override /*1*/ val increment: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*1*/ val start: jet.Char + public open override /*1*/ fun (): jet.Char public open override /*1*/ fun iterator(): jet.CharIterator } public final class CharRange : jet.Range, jet.Progression { - public constructor CharRange(/*0*/ start: jet.Char, /*1*/ end: jet.Char) + /*primary*/ public constructor CharRange(/*0*/ start: jet.Char, /*1*/ end: jet.Char) public open override /*2*/ val end: jet.Char + public open override /*2*/ fun (): jet.Char public open override /*1*/ val increment: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*2*/ val start: jet.Char + public open override /*2*/ fun (): jet.Char public open override /*1*/ fun contains(/*0*/ item: jet.Char): jet.Boolean public open override /*1*/ fun iterator(): jet.CharIterator public class object { - private constructor () + /*primary*/ private constructor () public final val EMPTY: jet.CharRange + public final fun (): jet.CharRange } } public trait CharSequence { public abstract val length: jet.Int + public abstract fun (): jet.Int public abstract fun get(/*0*/ index: jet.Int): jet.Char public abstract fun toString(): jet.String } @@ -270,7 +293,7 @@ public trait Comparable { } public final class Double : jet.Number, jet.Comparable { - public constructor Double() + /*primary*/ public constructor Double() public final fun compareTo(/*0*/ other: jet.Byte): jet.Int public final fun compareTo(/*0*/ other: jet.Char): jet.Int public open override /*1*/ fun compareTo(/*0*/ other: jet.Double): jet.Int @@ -335,45 +358,54 @@ public final class Double : jet.Number, jet.Comparable { } public final class DoubleArray { - public constructor DoubleArray(/*0*/ size: jet.Int) + /*primary*/ public constructor DoubleArray(/*0*/ size: jet.Int) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): jet.Double public final fun iterator(): jet.DoubleIterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: jet.Double): jet.Unit } public abstract class DoubleIterator : jet.Iterator { - public constructor DoubleIterator() + /*primary*/ public constructor DoubleIterator() public abstract override /*1*/ /*fake_override*/ fun hasNext(): jet.Boolean public open override /*1*/ fun next(): jet.Double public abstract fun nextDouble(): jet.Double } public final class DoubleProgression : jet.Progression { - public constructor DoubleProgression(/*0*/ start: jet.Double, /*1*/ end: jet.Double, /*2*/ increment: jet.Double) + /*primary*/ public constructor DoubleProgression(/*0*/ start: jet.Double, /*1*/ end: jet.Double, /*2*/ increment: jet.Double) public open override /*1*/ val end: jet.Double + public open override /*1*/ fun (): jet.Double public open override /*1*/ val increment: jet.Double + public open override /*1*/ fun (): jet.Double public open override /*1*/ val start: jet.Double + public open override /*1*/ fun (): jet.Double public open override /*1*/ fun iterator(): jet.DoubleIterator } public final class DoubleRange : jet.Range, jet.Progression { - public constructor DoubleRange(/*0*/ start: jet.Double, /*1*/ end: jet.Double) + /*primary*/ public constructor DoubleRange(/*0*/ start: jet.Double, /*1*/ end: jet.Double) public open override /*2*/ val end: jet.Double + public open override /*2*/ fun (): jet.Double public open override /*1*/ val increment: jet.Double + public open override /*1*/ fun (): jet.Double public open override /*2*/ val start: jet.Double + public open override /*2*/ fun (): jet.Double public open override /*1*/ fun contains(/*0*/ item: jet.Double): jet.Boolean public open override /*1*/ fun iterator(): jet.DoubleIterator public class object { - private constructor () + /*primary*/ private constructor () public final val EMPTY: jet.DoubleRange + public final fun (): jet.DoubleRange } } public abstract class Enum> { - public constructor Enum>(/*0*/ name: jet.String, /*1*/ ordinal: jet.Int) + /*primary*/ public constructor Enum>(/*0*/ name: jet.String, /*1*/ ordinal: jet.Int) public final fun name(): jet.String public final fun ordinal(): jet.Int } @@ -471,7 +503,7 @@ public trait ExtensionFunction9 { - public constructor Float() + /*primary*/ public constructor Float() public final fun compareTo(/*0*/ other: jet.Byte): jet.Int public final fun compareTo(/*0*/ other: jet.Char): jet.Int public final fun compareTo(/*0*/ other: jet.Double): jet.Int @@ -537,40 +569,49 @@ public final class Float : jet.Number, jet.Comparable { } public final class FloatArray { - public constructor FloatArray(/*0*/ size: jet.Int) + /*primary*/ public constructor FloatArray(/*0*/ size: jet.Int) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): jet.Float public final fun iterator(): jet.FloatIterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: jet.Float): jet.Unit } public abstract class FloatIterator : jet.Iterator { - public constructor FloatIterator() + /*primary*/ public constructor FloatIterator() public abstract override /*1*/ /*fake_override*/ fun hasNext(): jet.Boolean public open override /*1*/ fun next(): jet.Float public abstract fun nextFloat(): jet.Float } public final class FloatProgression : jet.Progression { - public constructor FloatProgression(/*0*/ start: jet.Float, /*1*/ end: jet.Float, /*2*/ increment: jet.Float) + /*primary*/ public constructor FloatProgression(/*0*/ start: jet.Float, /*1*/ end: jet.Float, /*2*/ increment: jet.Float) public open override /*1*/ val end: jet.Float + public open override /*1*/ fun (): jet.Float public open override /*1*/ val increment: jet.Float + public open override /*1*/ fun (): jet.Float public open override /*1*/ val start: jet.Float + public open override /*1*/ fun (): jet.Float public open override /*1*/ fun iterator(): jet.FloatIterator } public final class FloatRange : jet.Range, jet.Progression { - public constructor FloatRange(/*0*/ start: jet.Float, /*1*/ end: jet.Float) + /*primary*/ public constructor FloatRange(/*0*/ start: jet.Float, /*1*/ end: jet.Float) public open override /*2*/ val end: jet.Float + public open override /*2*/ fun (): jet.Float public open override /*1*/ val increment: jet.Float + public open override /*1*/ fun (): jet.Float public open override /*2*/ val start: jet.Float + public open override /*2*/ fun (): jet.Float public open override /*1*/ fun contains(/*0*/ item: jet.Float): jet.Boolean public open override /*1*/ fun iterator(): jet.FloatIterator public class object { - private constructor () + /*primary*/ private constructor () public final val EMPTY: jet.FloatRange + public final fun (): jet.FloatRange } } @@ -672,7 +713,7 @@ public trait Hashable { } public final class Int : jet.Number, jet.Comparable { - public constructor Int() + /*primary*/ public constructor Int() public final fun and(/*0*/ other: jet.Int): jet.Int public final fun compareTo(/*0*/ other: jet.Byte): jet.Int public final fun compareTo(/*0*/ other: jet.Char): jet.Int @@ -745,40 +786,49 @@ public final class Int : jet.Number, jet.Comparable { } public final class IntArray { - public constructor IntArray(/*0*/ size: jet.Int) + /*primary*/ public constructor IntArray(/*0*/ size: jet.Int) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): jet.Int public final fun iterator(): jet.IntIterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: jet.Int): jet.Unit } public abstract class IntIterator : jet.Iterator { - public constructor IntIterator() + /*primary*/ public constructor IntIterator() public abstract override /*1*/ /*fake_override*/ fun hasNext(): jet.Boolean public open override /*1*/ fun next(): jet.Int public abstract fun nextInt(): jet.Int } public final class IntProgression : jet.Progression { - public constructor IntProgression(/*0*/ start: jet.Int, /*1*/ end: jet.Int, /*2*/ increment: jet.Int) + /*primary*/ public constructor IntProgression(/*0*/ start: jet.Int, /*1*/ end: jet.Int, /*2*/ increment: jet.Int) public open override /*1*/ val end: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*1*/ val increment: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*1*/ val start: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*1*/ fun iterator(): jet.IntIterator } public final class IntRange : jet.Range, jet.Progression { - public constructor IntRange(/*0*/ start: jet.Int, /*1*/ end: jet.Int) + /*primary*/ public constructor IntRange(/*0*/ start: jet.Int, /*1*/ end: jet.Int) public open override /*2*/ val end: jet.Int + public open override /*2*/ fun (): jet.Int public open override /*1*/ val increment: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*2*/ val start: jet.Int + public open override /*2*/ fun (): jet.Int public open override /*1*/ fun contains(/*0*/ item: jet.Int): jet.Boolean public open override /*1*/ fun iterator(): jet.IntIterator public class object { - private constructor () + /*primary*/ private constructor () public final val EMPTY: jet.IntRange + public final fun (): jet.IntRange } } @@ -1095,7 +1145,7 @@ public trait ListIterator : jet.Iterator { } public final class Long : jet.Number, jet.Comparable { - public constructor Long() + /*primary*/ public constructor Long() public final fun and(/*0*/ other: jet.Long): jet.Long public final fun compareTo(/*0*/ other: jet.Byte): jet.Int public final fun compareTo(/*0*/ other: jet.Char): jet.Int @@ -1168,40 +1218,49 @@ public final class Long : jet.Number, jet.Comparable { } public final class LongArray { - public constructor LongArray(/*0*/ size: jet.Int) + /*primary*/ public constructor LongArray(/*0*/ size: jet.Int) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): jet.Long public final fun iterator(): jet.LongIterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: jet.Long): jet.Unit } public abstract class LongIterator : jet.Iterator { - public constructor LongIterator() + /*primary*/ public constructor LongIterator() public abstract override /*1*/ /*fake_override*/ fun hasNext(): jet.Boolean public open override /*1*/ fun next(): jet.Long public abstract fun nextLong(): jet.Long } public final class LongProgression : jet.Progression { - public constructor LongProgression(/*0*/ start: jet.Long, /*1*/ end: jet.Long, /*2*/ increment: jet.Long) + /*primary*/ public constructor LongProgression(/*0*/ start: jet.Long, /*1*/ end: jet.Long, /*2*/ increment: jet.Long) public open override /*1*/ val end: jet.Long + public open override /*1*/ fun (): jet.Long public open override /*1*/ val increment: jet.Long + public open override /*1*/ fun (): jet.Long public open override /*1*/ val start: jet.Long + public open override /*1*/ fun (): jet.Long public open override /*1*/ fun iterator(): jet.LongIterator } public final class LongRange : jet.Range, jet.Progression { - public constructor LongRange(/*0*/ start: jet.Long, /*1*/ end: jet.Long) + /*primary*/ public constructor LongRange(/*0*/ start: jet.Long, /*1*/ end: jet.Long) public open override /*2*/ val end: jet.Long + public open override /*2*/ fun (): jet.Long public open override /*1*/ val increment: jet.Long + public open override /*1*/ fun (): jet.Long public open override /*2*/ val start: jet.Long + public open override /*2*/ fun (): jet.Long public open override /*1*/ fun contains(/*0*/ item: jet.Long): jet.Boolean public open override /*1*/ fun iterator(): jet.LongIterator public class object { - private constructor () + /*primary*/ private constructor () public final val EMPTY: jet.LongRange + public final fun (): jet.LongRange } } @@ -1333,11 +1392,11 @@ public trait MutableSet : jet.Set, jet.MutableCollection { } public final class Nothing { - private constructor Nothing() + /*primary*/ private constructor Nothing() } public abstract class Number : jet.Hashable { - public constructor Number() + /*primary*/ public constructor Number() public abstract override /*1*/ /*fake_override*/ fun equals(/*0*/ other: jet.Any?): jet.Boolean public abstract override /*1*/ /*fake_override*/ fun hashCode(): jet.Int public abstract fun toByte(): jet.Byte @@ -1351,23 +1410,30 @@ public abstract class Number : jet.Hashable { public trait Progression : jet.Iterable { public abstract val end: N + public abstract fun (): N public abstract val increment: jet.Number + public abstract fun (): jet.Number public abstract val start: N + public abstract fun (): N public abstract override /*1*/ /*fake_override*/ fun iterator(): jet.Iterator } public trait PropertyMetadata { public abstract val name: jet.String + public abstract fun (): jet.String } public final class PropertyMetadataImpl : jet.PropertyMetadata { - public constructor PropertyMetadataImpl(/*0*/ name: jet.String) + /*primary*/ public constructor PropertyMetadataImpl(/*0*/ name: jet.String) public open override /*1*/ val name: jet.String + public open override /*1*/ fun (): jet.String } public trait Range> { public abstract val end: T + public abstract fun (): T public abstract val start: T + public abstract fun (): T public abstract fun contains(/*0*/ item: T): jet.Boolean } @@ -1384,7 +1450,7 @@ public trait Set : jet.Collection { } public final class Short : jet.Number, jet.Comparable { - public constructor Short() + /*primary*/ public constructor Short() public final fun compareTo(/*0*/ other: jet.Byte): jet.Int public final fun compareTo(/*0*/ other: jet.Char): jet.Int public final fun compareTo(/*0*/ other: jet.Double): jet.Int @@ -1450,46 +1516,56 @@ public final class Short : jet.Number, jet.Comparable { } public final class ShortArray { - public constructor ShortArray(/*0*/ size: jet.Int) + /*primary*/ public constructor ShortArray(/*0*/ size: jet.Int) public final val indices: jet.IntRange + public final fun (): jet.IntRange public final val size: jet.Int + public final fun (): jet.Int public final fun get(/*0*/ index: jet.Int): jet.Short public final fun iterator(): jet.ShortIterator public final fun set(/*0*/ index: jet.Int, /*1*/ value: jet.Short): jet.Unit } public abstract class ShortIterator : jet.Iterator { - public constructor ShortIterator() + /*primary*/ public constructor ShortIterator() public abstract override /*1*/ /*fake_override*/ fun hasNext(): jet.Boolean public open override /*1*/ fun next(): jet.Short public abstract fun nextShort(): jet.Short } public final class ShortProgression : jet.Progression { - public constructor ShortProgression(/*0*/ start: jet.Short, /*1*/ end: jet.Short, /*2*/ increment: jet.Int) + /*primary*/ public constructor ShortProgression(/*0*/ start: jet.Short, /*1*/ end: jet.Short, /*2*/ increment: jet.Int) public open override /*1*/ val end: jet.Short + public open override /*1*/ fun (): jet.Short public open override /*1*/ val increment: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*1*/ val start: jet.Short + public open override /*1*/ fun (): jet.Short public open override /*1*/ fun iterator(): jet.ShortIterator } public final class ShortRange : jet.Range, jet.Progression { - public constructor ShortRange(/*0*/ start: jet.Short, /*1*/ end: jet.Short) + /*primary*/ public constructor ShortRange(/*0*/ start: jet.Short, /*1*/ end: jet.Short) public open override /*2*/ val end: jet.Short + public open override /*2*/ fun (): jet.Short public open override /*1*/ val increment: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*2*/ val start: jet.Short + public open override /*2*/ fun (): jet.Short public open override /*1*/ fun contains(/*0*/ item: jet.Short): jet.Boolean public open override /*1*/ fun iterator(): jet.ShortIterator public class object { - private constructor () + /*primary*/ private constructor () public final val EMPTY: jet.ShortRange + public final fun (): jet.ShortRange } } public final class String : jet.Comparable, jet.CharSequence { - public constructor String() + /*primary*/ public constructor String() public open override /*1*/ val length: jet.Int + public open override /*1*/ fun (): jet.Int public open override /*1*/ fun compareTo(/*0*/ that: jet.String): jet.Int public final fun equals(/*0*/ other: jet.Any?): jet.Boolean public open override /*1*/ fun get(/*0*/ index: jet.Int): jet.Char @@ -1498,33 +1574,34 @@ public final class String : jet.Comparable, jet.CharSequence { } public open class Throwable { - public constructor Throwable(/*0*/ message: jet.String? = ..., /*1*/ cause: jet.Throwable? = ...) + /*primary*/ public constructor Throwable(/*0*/ message: jet.String? = ..., /*1*/ cause: jet.Throwable? = ...) public final fun getCause(): jet.Throwable? public final fun getMessage(): jet.String? public final fun printStackTrace(): jet.Unit } public final class Unit { - private constructor Unit() + /*primary*/ private constructor Unit() public class object { - private constructor () + /*primary*/ private constructor () public final val VALUE: jet.Unit + public final fun (): jet.Unit } } public final annotation class atomic : jet.Annotation { - public constructor atomic() + /*primary*/ public constructor atomic() } public final annotation class data : jet.Annotation { - public constructor data() + /*primary*/ public constructor data() } public final annotation class deprecated : jet.Annotation { - public constructor deprecated(/*0*/ value: jet.String) + /*primary*/ public constructor deprecated(/*0*/ value: jet.String) } public final annotation class volatile : jet.Annotation { - public constructor volatile() + /*primary*/ public constructor volatile() } diff --git a/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/LazyResolveBuiltinClassesTest.java b/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/LazyResolveBuiltinClassesTest.java index ba8e3e12dbe..2ae15fe6753 100644 --- a/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/LazyResolveBuiltinClassesTest.java +++ b/compiler/tests/org/jetbrains/jet/lang/resolve/lazy/LazyResolveBuiltinClassesTest.java @@ -25,7 +25,7 @@ import org.junit.Test; import java.io.File; -import static org.jetbrains.jet.test.util.NamespaceComparator.RECURSIVE; +import static org.jetbrains.jet.test.util.NamespaceComparator.RECURSIVE_ALL; import static org.jetbrains.jet.test.util.NamespaceComparator.compareNamespaceWithFile; public class LazyResolveBuiltinClassesTest extends KotlinTestWithEnvironment { @@ -38,6 +38,6 @@ public class LazyResolveBuiltinClassesTest extends KotlinTestWithEnvironment { public void testBuiltIns() throws Exception { NamespaceDescriptor builtInsPackage = KotlinBuiltIns.getInstance().getBuiltInsPackage(); DescriptorValidator.validate(builtInsPackage); - compareNamespaceWithFile(builtInsPackage, RECURSIVE, new File("compiler/testData/builtin-classes.txt")); + compareNamespaceWithFile(builtInsPackage, RECURSIVE_ALL, new File("compiler/testData/builtin-classes.txt")); } } diff --git a/compiler/tests/org/jetbrains/jet/test/util/NamespaceComparator.java b/compiler/tests/org/jetbrains/jet/test/util/NamespaceComparator.java index ad16bcc839f..d50c518533a 100644 --- a/compiler/tests/org/jetbrains/jet/test/util/NamespaceComparator.java +++ b/compiler/tests/org/jetbrains/jet/test/util/NamespaceComparator.java @@ -47,6 +47,7 @@ import java.util.List; public class NamespaceComparator { public static final Configuration DONT_INCLUDE_METHODS_OF_OBJECT = new Configuration(false, false, false, Predicates.alwaysTrue()); public static final Configuration RECURSIVE = new Configuration(false, false, true, Predicates.alwaysTrue()); + public static final Configuration RECURSIVE_ALL = new Configuration(true, true, true, Predicates.alwaysTrue()); private static final DescriptorRenderer RENDERER = new DescriptorRendererBuilder() .setWithDefinedIn(false)