Tests to make sure that light classes compute the data properly

This commit is contained in:
Andrey Breslav
2013-01-14 17:24:37 +04:00
parent 8c8accad42
commit 05cf9041af
4 changed files with 326 additions and 0 deletions
@@ -0,0 +1,33 @@
package test
class NoModifiers
// Visibility
public class Public
private class Private
internal class Internal
class Outer {
public class Public
protected class Protected
private class Private
internal class Internal
}
// Modality
abstract class Abstract
open class Open
final class Final
// Special
annotation class Annotation
enum class Enum
trait Trait
// Deprecation
deprecated class Deprecated
[deprecated] class DeprecatedWithBrackets
// Generic
class Generic1<T>
class Generic2<A, B>
@@ -0,0 +1,11 @@
package test
class Generic1<T>
class Generic1WithBounds<T: Bound1>
class Generic2<A, B>
class Generic2WithBounds<A, B> where A: Bound1, A: Bound2, B: Generic1<A>
class Bound1
class Bound2
@@ -0,0 +1,3 @@
package test
fun foo()