File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed 
pkg/analyzer/test/src/dart/parser Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -610,10 +610,7 @@ ClassDeclaration
610610    var  parseResult =  parseStringWithErrors (r''' 
611611class A(final int a(String x)) {} 
612612''' );
613-     // TODO(scheglov): this is wrong. 
614-     parseResult.assertErrors ([
615-       error (ParserErrorCode .functionTypedParameterVar, 8 , 5 ),
616-     ]);
613+     parseResult.assertNoErrors ();
617614
618615    var  node =  parseResult.findNode.singleClassDeclaration;
619616    assertParsedNodeText (node, r''' 
@@ -646,10 +643,7 @@ ClassDeclaration
646643    var  parseResult =  parseStringWithErrors (r''' 
647644class A(var int a(String x)) {} 
648645''' );
649-     // TODO(scheglov): this is wrong. 
650-     parseResult.assertErrors ([
651-       error (ParserErrorCode .functionTypedParameterVar, 8 , 3 ),
652-     ]);
646+     parseResult.assertNoErrors ();
653647
654648    var  node =  parseResult.findNode.singleClassDeclaration;
655649    assertParsedNodeText (node, r''' 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments