mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Quieten errors relating to generic type aliases
Turns out type aliases are always substituted by the compiler, with the `IrSimpleType.abbreviation` field indicating what the original alias was if any. Therefore we're already extracting the right types. This commit simply omits extracting a kt_type for a type alias that uses type parameters as this certainly won't work at present because we don't have IrTypes for the type parameters declared by the alias and used in its RHS.
This commit is contained in:
committed by
Ian Lynagh
parent
1d47ea30eb
commit
d593185a8c
@@ -0,0 +1,7 @@
|
||||
class Test<T> {}
|
||||
|
||||
typealias Alias2<R> = Test<R>
|
||||
|
||||
typealias Alias1<S> = Alias2<S>
|
||||
|
||||
fun f() : Alias1<String> = Test<String>()
|
||||
Reference in New Issue
Block a user