1891084dec
This is necessary to avoid confusion when a generic function or method recursively calls itself. Fixes #31759. Change-Id: I4e3be2093e9d6b81f084250435ea7493ca6b2464 Reviewed-on: https://dart-review.googlesource.com/36363 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
12 lines
542 B
Plaintext
12 lines
542 B
Plaintext
library test;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method _mergeSort<T extends core::Object>((self::_mergeSort::T) → self::_mergeSort::T list, (self::_mergeSort::T, self::_mergeSort::T) → core::int compare, (self::_mergeSort::T) → self::_mergeSort::T target) → void {
|
|
self::_mergeSort<dynamic>(list, compare, target);
|
|
self::_mergeSort<dynamic>(list, compare, list);
|
|
self::_mergeSort<dynamic>(target, compare, target);
|
|
self::_mergeSort<dynamic>(target, compare, list);
|
|
}
|
|
static method main() → dynamic {}
|