diff --git a/index.html b/index.html index 4ec08cb..e4bbdaf 100644 --- a/index.html +++ b/index.html @@ -253,6 +253,7 @@ }
for (let current in someObjects) {
if (current instanceof Movie) {
+ let movie = current as Movie;
console.log(`Movie: '${movie.name}', ` +
`dir. ${movie.director}`);
}
@@ -271,4 +272,4 @@
function f(x: Nameable) {
console.log("Name is " + x.name());
}
-