Update tests

This commit is contained in:
Anders Hejlsberg 2017-11-16 10:58:12 -08:00
parent 8cbff0159d
commit 3357aae2d8
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ type Data<T> = {
};
class Parent<M> {
private data: Data<M>;
constructor(private data: Data<M>) {}
getData(): Data<M> {
return this.data;
}

View file

@ -7,7 +7,7 @@ interface Foo {
}
class A<P extends Partial<Foo>> {
props: Readonly<P>
constructor(public props: Readonly<P>) {}
doSomething() {
this.props.foo && this.props.foo()
}