From 65cf5a8e44f299bb24e139cc25df717f1ddba455 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Sat, 6 Apr 2019 11:04:55 +0200 Subject: removed todo comment and added test --- src/ir.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/ir.cpp') diff --git a/src/ir.cpp b/src/ir.cpp index 102ccc6f4a..c572e3c885 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -16309,9 +16309,6 @@ static IrInstruction *ir_analyze_instruction_to_ptr_type(IrAnalyze *ira, ZigType *ptr_type; if (type_entry->id == ZigTypeIdArray) { - // TODO: Allow capturing pointer to const array. - // const a = "123"; for (a) |*c| continue; - // error: expected type '*u8', found '*const u8' ptr_type = get_pointer_to_type(ira->codegen, type_entry->data.array.child_type, ptr_ptr_type->data.pointer.is_const); } else if (is_array_ref(type_entry)) { ptr_type = get_pointer_to_type(ira->codegen, -- cgit v1.2.3