File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed 
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ class Compiler {
3333  protected  def  frontendPhases :  List [List [Phase ]] = 
3434    List (new  Parser ) ::              //  Compiler frontend: scanner, parser
3535    List (new  TyperPhase ) ::          //  Compiler frontend: namer, typer
36-     List (CheckUnused .PostTyper (), CheckShadowing ()) ::  //  Check for unused, shadowed elements
37-     List (new  WInferUnion ) ::         //  Winfer-union
36+     List (new  WInferUnion ,           //  Check for type arguments inferred as union types
37+          CheckUnused .PostTyper (),   //  Check for unused
38+          CheckShadowing ()) ::        //  Check for shadowed elements
3839    List (new  YCheckPositions ) ::     //  YCheck positions
3940    List (new  sbt.ExtractDependencies ) ::  //  Sends information on classes' dependencies to sbt via callbacks
4041    List (new  semanticdb.ExtractSemanticDB .ExtractSemanticInfo ) ::  //  Extract info into .semanticdb files
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ class WInferUnion extends MiniPhase {
2929
3030object  WInferUnion : 
3131  val  name  =  " Winfer-union" 
32-   val  description  =  " warn if  type argument  inferred as union type " 
32+   val  description  =  " check for  type arguments  inferred as union types " 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments