File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
pkg/analyzer/lib/src/generated Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class FfiVerifier extends RecursiveAstVisitor<void> {
141141 element.name == 'DynamicLibrary' && element.library.name == 'dart.ffi' ;
142142
143143 /// Return `true` if the given [element] represents the class `Pointer` .
144- bool _isPointer (ClassElement element) =>
144+ bool _isPointer (Element element) =>
145145 element.name == 'Pointer' && element.library.name == 'dart.ffi' ;
146146
147147 /// Return `true` if the [typeName] represents a subtype of `Struct` .
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2+ // for details. All rights reserved. Use of this source code is governed by a
3+ // BSD-style license that can be found in the LICENSE file.
4+ //
5+ // Tests a compile time error that should not crash the analyzer or CFE.
6+
7+ import "dart:ffi" ;
8+
9+ class C extends Struct {
10+ dynamic x; //# 1: compile-time error
11+ }
12+
13+ main () {}
You can’t perform that action at this time.
0 commit comments