Extra check on interface asserts
Interface asserts haven't been implemented yet. Don't produce incorrect code in that case.
Этот коммит содержится в:
		
							родитель
							
								
									0c71ed81a4
								
							
						
					
					
						коммит
						ee10162564
					
				
					 1 изменённых файлов: 3 добавлений и 0 удалений
				
			
		| 
						 | 
					@ -1731,6 +1731,9 @@ func (c *Compiler) parseExpr(frame *Frame, expr ssa.Value) (llvm.Value, error) {
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return llvm.Value{}, err
 | 
								return llvm.Value{}, err
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							if _, ok := expr.AssertedType.Underlying().(*types.Interface); ok {
 | 
				
			||||||
 | 
								return llvm.Value{}, errors.New("todo: assert on interface")
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		assertedType, err := c.getLLVMType(expr.AssertedType)
 | 
							assertedType, err := c.getLLVMType(expr.AssertedType)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return llvm.Value{}, err
 | 
								return llvm.Value{}, err
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче