-
-
Save iam-peekay/6da961215448cb216b74faa122f533e2 to your computer and use it in GitHub Desktop.
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
var rectangle = new Rectangle(10, 4); | |
var area: string = rectangle.area(); | |
// Flow errors | |
100: var area: string = rectangle.area(); | |
^^^^^^^^^^^^^^^^ number. This type is incompatible with | |
100: var area: string = rectangle.area(); | |
^^^^^^ string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment