diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-11-16 16:51:08 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-11-24 20:15:49 +0300 |
commit | 76c7e32f74b8982303a86f81b2ffed2b2a7e7c70 (patch) | |
tree | f9068cdf80d044fbd3d1c2f9be894de8884a1b07 /core/testdata | |
parent | 17a9a1774ec10690a031ae7afba5f5cfc59a9f24 (diff) | |
download | dokka-76c7e32f74b8982303a86f81b2ffed2b2a7e7c70.tar.gz dokka-76c7e32f74b8982303a86f81b2ffed2b2a7e7c70.tar.bz2 dokka-76c7e32f74b8982303a86f81b2ffed2b2a7e7c70.zip |
Type alias support
Diffstat (limited to 'core/testdata')
-rw-r--r-- | core/testdata/typealias/chain.kt | 8 | ||||
-rw-r--r-- | core/testdata/typealias/deprecated.kt | 7 | ||||
-rw-r--r-- | core/testdata/typealias/documented.kt | 9 | ||||
-rw-r--r-- | core/testdata/typealias/functional.kt | 10 | ||||
-rw-r--r-- | core/testdata/typealias/generic.kt | 7 | ||||
-rw-r--r-- | core/testdata/typealias/inheritanceFromTypeAlias.kt | 7 | ||||
-rw-r--r-- | core/testdata/typealias/simple.kt | 5 |
7 files changed, 53 insertions, 0 deletions
diff --git a/core/testdata/typealias/chain.kt b/core/testdata/typealias/chain.kt new file mode 100644 index 00000000..520be553 --- /dev/null +++ b/core/testdata/typealias/chain.kt @@ -0,0 +1,8 @@ +package _typealias.chain + +class A + +typealias B = A + +typealias C = B + diff --git a/core/testdata/typealias/deprecated.kt b/core/testdata/typealias/deprecated.kt new file mode 100644 index 00000000..b53d3a20 --- /dev/null +++ b/core/testdata/typealias/deprecated.kt @@ -0,0 +1,7 @@ +package _typealias.deprecated + +class Lol + +@Deprecated("Not mainstream now") +typealias Kek = Lol + diff --git a/core/testdata/typealias/documented.kt b/core/testdata/typealias/documented.kt new file mode 100644 index 00000000..3ca110e5 --- /dev/null +++ b/core/testdata/typealias/documented.kt @@ -0,0 +1,9 @@ +package _typealias.documented + +class A + +/** + * Just typealias + */ +typealias B = A + diff --git a/core/testdata/typealias/functional.kt b/core/testdata/typealias/functional.kt new file mode 100644 index 00000000..dadafa5e --- /dev/null +++ b/core/testdata/typealias/functional.kt @@ -0,0 +1,10 @@ +package _typealias.functional + +class A +class B + +typealias Spell = (A) -> B + +fun magic(spell: Spell) { + +}
\ No newline at end of file diff --git a/core/testdata/typealias/generic.kt b/core/testdata/typealias/generic.kt new file mode 100644 index 00000000..43bc0e23 --- /dev/null +++ b/core/testdata/typealias/generic.kt @@ -0,0 +1,7 @@ +package _typealias.generic + +interface A<T> + +typealias B = A<Any> + +typealias C<T> = A<T>
\ No newline at end of file diff --git a/core/testdata/typealias/inheritanceFromTypeAlias.kt b/core/testdata/typealias/inheritanceFromTypeAlias.kt new file mode 100644 index 00000000..f929ecd0 --- /dev/null +++ b/core/testdata/typealias/inheritanceFromTypeAlias.kt @@ -0,0 +1,7 @@ +package _typealias.inheritance + +open class Some + +typealias Same = Some + +class My : Same
\ No newline at end of file diff --git a/core/testdata/typealias/simple.kt b/core/testdata/typealias/simple.kt new file mode 100644 index 00000000..d688a84d --- /dev/null +++ b/core/testdata/typealias/simple.kt @@ -0,0 +1,5 @@ +package _typealias.simple + +class A + +typealias B = A
\ No newline at end of file |