mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 06:20:13 +00:00
49142b49e7
This reverts commit679108ea7b
. Revert "Update 'samples/sample_extension' to Dart 2" This reverts commitfba5a58b47
. Reason for revert: Broken app-kernel and app-reload bots TBR=asiva@google.com,kathyw@google.com Change-Id: I690694ec974fa316b25934a1f0f62b5e665a28ba Reviewed-on: https://dart-review.googlesource.com/c/86800 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
12 lines
494 B
Dart
12 lines
494 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
library sample_synchronous_extension;
|
|
|
|
import 'dart-ext:sample_extension';
|
|
|
|
// The simplest way to call native code: top-level functions.
|
|
int systemRand() native "SystemRand";
|
|
int noScopeSystemRand() native "NoScopeSystemRand";
|
|
bool systemSrand(int seed) native "SystemSrand";
|