Closed shibukawa closed 10 years ago
src:
import 'console.jsx'; native class Test { static const text : string; } = ''' { text: '\r\n' } '''; class _Main { static function main(argv : string[]) : void { console.log(Test.text); } }
result (only native part):
var Test$0 = { text: ' ' };
This is a spec. Multiline string literal understands escape sequences to be used within. And inline native definition uses the feature.
I thought again and I noticed the removing escape sequence is difficult.
src:
result (only native part):