Skip to content

Instantly share code, notes, and snippets.

@exterm
Last active December 26, 2015 23:18
Show Gist options
  • Select an option

  • Save exterm/7229007 to your computer and use it in GitHub Desktop.

Select an option

Save exterm/7229007 to your computer and use it in GitHub Desktop.

Revisions

  1. exterm revised this gist Oct 30, 2013. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  2. exterm renamed this gist Oct 30, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. exterm created this gist Oct 30, 2013.
    12 changes: 12 additions & 0 deletions commands to reproduce
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    /tmp$ dart --version
    Dart VM version: 0.8.5.1_r28990 (Tue Oct 22 04:50:58 2013) on "linux_x64"

    /tmp$ dartanalyzer test.dart
    Analyzing test.dart...
    No issues found

    /tmp$ dart -c test.dart
    Unhandled exception:
    type 'int' is not a subtype of type 'double' of 'x'.
    #0 Point.Point (dart:math/point.dart:13)
    #1 main (file:///tmp/test.dart:4:25)
    5 changes: 5 additions & 0 deletions test.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    import 'dart:math';

    void main() {
    Point<double> p = new Point<double>();
    }