/*EXPECTED foo 42 42 foo */ class Pair. { var first : F; var second : S; function constructor(first : F, second : S) { this.first = first; this.second = second; } } class C { static function newPair.(first : F, second : S) : Pair. { return (() -> new Pair.(first, second))(); } } class _Main { static function main(args : string[]) : void { var p = C.newPair.("foo", 42); log p.first; log p.second; var q = C.newPair.(42, "foo"); log q.first; log q.second; } } // vim: set expandtab tabstop=2 shiftwidth=2 ft=jsx:

AltStyle によって変換されたページ (->オリジナル) /