This file contains hidden or 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
| using System; | |
| using System.Windows.Forms; | |
| namespace ConsoleApplication | |
| { | |
| class Program | |
| { | |
| [STAThread] | |
| static void Main(string[] args) | |
| { |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Test</title> | |
| <script type="text/javascript"> | |
| "use strict" | |
| function BigObject(x) { | |
| this.x = new Array(x); | |
| } | |
| var callbacks; |
This file contains hidden or 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 hex = 1234; | |
| `Invalid unicode escape [\\u${hex}]` | |
| /* | |
| Output in Playground | |
| var hex = 1234; | |
| "Invalid unicode escape [\u" + hex + "]"; | |
| */ | |
| /* |
This file contains hidden or 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
| @Component({ | |
| selector: 'todo-app', | |
| injectables: [ | |
| AngularFire, | |
| bind(Firebase).toValue(new Firebase('https://webapi.firebaseio-demo.com/test')) | |
| ]}) | |
| @View({ | |
| templateUrl: 'todo.html', | |
| directives: [For] | |
| }) |
This file contains hidden or 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
| // compile as: fsc -r:Mirror.dll client.fs | |
| module Client | |
| type T = Top.Repro.C | |
| T.Run() |
This file contains hidden or 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
| module M { | |
| interface MyArray<T> { | |
| push(value: T): void | |
| } | |
| let x = [1]; | |
| x.push(2); | |
| let y: MyArray<string>; | |
| y.push("123") |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Text</title> | |
| <script src="system.src.js"></script> | |
| </head> | |
| <body> | |
| <script> | |
| System.paths = { | |
| '*': '*.js', | |
| 'lodash':'node_modules/lodash/index.js' |
This file contains hidden or 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
| // babel file1.ts -m system | |
| System.register(['angular2/src/facade/lang', 'angular2/src/facade/collection', './reflection_capabilities', './reflector'], function (_export) { | |
| 'use strict'; | |
| var Type, isPresent, List, ListWrapper, ReflectionCapabilities, Reflector, reflector; | |
| return { | |
| setters: [function (_angular2SrcFacadeLang) { | |
| Type = _angular2SrcFacadeLang.Type; | |
| isPresent = _angular2SrcFacadeLang.isPresent; | |
| }, function (_angular2SrcFacadeCollection) { |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Test</title> | |
| <script language="javascript" src="system.js"></script> | |
| <script> | |
| System.config({ | |
| paths: { | |
| '*': '*.js' | |
| } | |
| }); |
This file contains hidden or 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
| declare namespace q.SomeEnum { | |
| export type SomeEnum = number ; | |
| export var SomeEnum : { | |
| A : SomeEnum , | |
| B : SomeEnum , | |
| }; | |
| } | |
| declare module 'goog:SomeEnum' { | |
| import alias = q.SomeEnum |
OlderNewer