diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-04-01 14:00:29 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-04-01 14:00:29 +0200 |
commit | 011019a20eec1de2bdc699ca81e5465db8d543a9 (patch) | |
tree | df748eb347a1a84270f6802b4755b6a42273b4af /core/testdata/format/genericInheritedExtensions.kt | |
parent | 792ae5c4099c7a37815888cd1313404375453eea (diff) | |
download | dokka-011019a20eec1de2bdc699ca81e5465db8d543a9.tar.gz dokka-011019a20eec1de2bdc699ca81e5465db8d543a9.tar.bz2 dokka-011019a20eec1de2bdc699ca81e5465db8d543a9.zip |
KT-11530: when the receiver type of an extension is generic, use subclass instead of subtype check to determine applicability (subtype check doesn't work because type parameter of receiver type is unrelated to type parameter of base class)
Diffstat (limited to 'core/testdata/format/genericInheritedExtensions.kt')
-rw-r--r-- | core/testdata/format/genericInheritedExtensions.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/testdata/format/genericInheritedExtensions.kt b/core/testdata/format/genericInheritedExtensions.kt new file mode 100644 index 00000000..4c07e1e5 --- /dev/null +++ b/core/testdata/format/genericInheritedExtensions.kt @@ -0,0 +1,11 @@ +open class Foo<T> + +class Bar<T> : Foo<T>() + +fun <T> Foo<T>.first() { + +} + +fun <T> Bar<T>.second() { + +} |