mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
447 B
TypeScript
21 lines
447 B
TypeScript
//// [tests/cases/compiler/aliasInstantiationExpressionGenericIntersectionNoCrash1.ts] ////
|
|
|
|
//// [aliasInstantiationExpressionGenericIntersectionNoCrash1.ts]
|
|
class ErrImpl<E> {
|
|
e!: E;
|
|
}
|
|
|
|
declare const Err: typeof ErrImpl & (<T>() => T);
|
|
|
|
type ErrAlias<U> = typeof Err<U>;
|
|
|
|
declare const e: ErrAlias<number>;
|
|
e as ErrAlias<string>;
|
|
|
|
|
|
//// [aliasInstantiationExpressionGenericIntersectionNoCrash1.js]
|
|
"use strict";
|
|
class ErrImpl {
|
|
}
|
|
e;
|