Skip to content

Commit 8f860f6

Browse files
committed
Add tests
1 parent 7c0cc84 commit 8f860f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/cases/conformance/types/conditional/conditionalTypes2.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ function f3(a: Invariant<A>, b: Invariant<B>) {
3434

3535
// Repros from #22860
3636

37-
export class Option<T> {
37+
class Opt<T> {
3838
toVector(): Vector<T> {
3939
return <any>undefined;
4040
}
4141
}
4242

4343
interface Seq<T> {
44-
tail(): Option<Seq<T>>;
44+
tail(): Opt<Seq<T>>;
4545
}
4646

4747
class Vector<T> implements Seq<T> {
48-
tail(): Option<Vector<T>> {
48+
tail(): Opt<Vector<T>> {
4949
return <any>undefined;
5050
}
5151
partition2<U extends T>(predicate:(v:T)=>v is U): [Vector<U>,Vector<Exclude<T, U>>];

0 commit comments

Comments
 (0)