mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:13:04 +00:00
new test for failing super param comment resolution
See: https://github.com/dart-lang/sdk/issues/51578 Change-Id: Icf000e008f5e04f6ab948b2d226877efa19bfd1a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286080 Commit-Queue: Phil Quitslund <pquitslund@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
7491995fd6
commit
b05cc9442a
|
@ -306,6 +306,23 @@ test() {}
|
|||
expect(prefixed.identifier.staticElement, findElement.method('=='));
|
||||
}
|
||||
|
||||
@FailingTest(issue: 'https://github.com/dart-lang/sdk/issues/51578')
|
||||
test_visitCommentReference_superParameter() async {
|
||||
await assertNoErrorsInCode('''
|
||||
class G {
|
||||
G(int p1);
|
||||
}
|
||||
|
||||
class H extends G {
|
||||
/// [p1]
|
||||
H(super.p1);
|
||||
}
|
||||
''');
|
||||
var node = findNode.commentReference('[p1]');
|
||||
expect(node, isNotNull);
|
||||
// todo(pq): add expectations
|
||||
}
|
||||
|
||||
test_visitConstructorName_named() async {
|
||||
await assertNoErrorsInCode('''
|
||||
class A implements B {
|
||||
|
|
Loading…
Reference in a new issue