So I've got the following code:
var e =
e. (document.createTextNode("Some text"));
This generates a warning and one error, which are underlined above with a yellow and red line, respectively.
- Warning: Type mismatch: cannot convert from Element to ___e1
- Error: The function appendChild(Text) is undefined for the type ___e1
And a description of why this is stupid:
- And this error is caused by the first warning - the function exists on Elements, but not the type is invented from nowhere.