From c5ee24ef524a4d90cd5fbf0aa22a137396f5306c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 6 Nov 2016 01:12:35 -0700 Subject: 3631 --- 034address.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/034address.cc b/034address.cc index f5363c1f..dc032d4f 100644 --- a/034address.cc +++ b/034address.cc @@ -200,6 +200,13 @@ void drop_from_type(reagent& r, string expected_type) { delete tmp; } +:(scenario new_returns_incorrect_type) +% Hide_errors = true; +def main [ + 1:bool <- new num:type +] ++error: main: product of 'new' has incorrect type: '1:bool <- new num:type' + :(scenario new_with_type_abbreviation) def main [ 1:address:num/raw <- new num:type -- cgit 1.4.1-2-gfad0 91a0f67'/> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/subx/Readme.md
blob: 49abbdf3fd01042b7e74997eb6ef6c73328a06c4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10