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
| class A { | |
| final foo; | |
| A(this.foo) { | |
| log('A#ctor'); | |
| } | |
| } | |
| class B extends A { | |
| final bar; | |
| B() |
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 foo = 0; | |
| class A { | |
| static var bar = (foo = 1); | |
| } | |
| void main() { | |
| print(foo); // 0 since A.bar hasn't been ever accessed yet | |
| A.bar; // A.bar's initialization expression is lazily evaluated | |
| print(foo); // 1 since A.bar has been accessed already |
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.Diagnostics; | |
| using System.IO; | |
| namespace Cutter | |
| { | |
| class MainClass | |
| { | |
| const float Precision = 0.02f; | |
| const float CutterStep = 0.1f; |