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:
pq 2023-02-28 21:24:35 +00:00 committed by Commit Queue
parent 7491995fd6
commit b05cc9442a

View file

@ -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 {