blob: a14a1836342e4b2eeec28d2846a19a6f19fff97c [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/ffi_sample.dart:12:7: Error: The type 'Coordinate' must be 'base', 'final' or 'sealed' because the supertype 'Struct' is 'base'.
// Try adding 'base', 'final', or 'sealed' to the type.
// class Coordinate extends Struct {
// ^
//
import self as self;
import "dart:ffi" as ffi;
import "dart:core" as core;
import "dart:ffi";
import "package:ffi/ffi.dart";
class Coordinate extends ffi::Struct {
field ffi::Pointer<self::Coordinate> next;
@ffi::Double::•()
external get x() core::double;
@ffi::Double::•()
external set x(synthesized core::double #externalFieldValue) → void;
@ffi::Double::•()
external get y() core::double;
@ffi::Double::•()
external set y(synthesized core::double #externalFieldValue) → void;
static factory allocate(ffi::Allocator allocator, core::double x, core::double y, ffi::Pointer<self::Coordinate> next) self::Coordinate
;
}
static method main() dynamic
;
Extra constant evaluation status:
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///ffi_sample.dart:13:4 -> InstanceConstant(const Double{})
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///ffi_sample.dart:13:4 -> InstanceConstant(const Double{})
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///ffi_sample.dart:16:4 -> InstanceConstant(const Double{})
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///ffi_sample.dart:16:4 -> InstanceConstant(const Double{})
Extra constant evaluation: evaluated: 4, effectively constant: 4