Remove mistakenly added test file

Intended for a different PR
This commit is contained in:
Nathan Shively-Sanders
2017-09-15 10:28:13 -07:00
parent 7497d4cb3a
commit 0197357e31

View File

@@ -1,21 +0,0 @@
interface X {
type1: 'x';
value: string;
}
interface Y {
type2: 'y';
value: 'none' | 'done';
}
function foo(bar: X | Y) { }
foo({
type2: 'y',
value: 'done',
});
// you could do this (amybe) by noting that
// (1) the argument is a fresh object literal
// (2) of X | Y, the object literal is only assignable to Y
// - you can do *that* cheaply (ie, symbolically) just by throwing out types
// that are missing one of the fields in the object literal