File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed 
Tests/HyloTests/TestCases/TypeChecking Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ public type Array<Element: SemiRegular>: SemiRegular {
207207
208208}
209209
210- public conformance Array: Equatable {
210+ public conformance Array: Equatable where Element: Equatable  {
211211
212212  /// Returns `true` iff `other` has an equivalent value.
213213  public fun infix== (_ other: Self) -> Bool {
Original file line number Diff line number Diff line change 33///
44/// - Move is value-preserving.
55/// - Destruction has no side-effects.
6- public trait SemiRegular: Deinitializable, Movable, Equatable  {}
6+ public trait SemiRegular: Copyable, Deinitializable  {}
77
88/// Regular types (roughly per Stepanov).
99///
1010/// Copies have equal value.
11- public trait Regular: SemiRegular, Copyable  {}
11+ public trait Regular: SemiRegular, Equatable  {}
Original file line number Diff line number Diff line change 11//- typeCheck expecting: .success
22
3- trait P: SemiRegular {
4-   type T: SemiRegular
5-   type U: SemiRegular
3+ // Our SemiRegular when this test was written wasn't the genuine
4+ // SemiRegular but was being depended on by this test, so rephrasing
5+ // it here.
6+ trait LegacySemiRegular: Deinitializable, Movable, Equatable {}
7+ 
8+ trait P: LegacySemiRegular {
9+   type T: LegacySemiRegular
10+   type U: LegacySemiRegular
611
712  fun t(_ x: T)
813  fun u(_ x: U)
914}
1015
11- trait Q: SemiRegular  {
16+ trait Q: LegacySemiRegular  {
1217  type V: P
1318  property v: V { let }
1419}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments