-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Asger Feldthaus
committed
Apr 3, 2014
1 parent
01ed87f
commit e11470b
Showing
4 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
declare enum FontStyle { | ||
Normal, Bold, Italic | ||
} | ||
declare enum FontSize { | ||
Small, Large | ||
} | ||
|
||
declare function getStyle(): FontStyle; | ||
declare function badStyle(x:number): FontStyle; | ||
declare function bad(): FontStyle; | ||
declare function badConvert(x:FontStyle): FontSize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
var FontStyle = { | ||
Normal: "normal", | ||
Bold: "bold", | ||
Italic: "italic" | ||
}; | ||
|
||
var FontSize = { | ||
Large: "large", | ||
Small: "small" | ||
} | ||
|
||
function getStyle() { | ||
return "normal"; | ||
} | ||
function badStyle(x) { | ||
return x; | ||
} | ||
function bad() { | ||
return "yikes" | ||
} | ||
function badConvert(x) { | ||
return x; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters