From e19095ef128f53644bc7650094d8924633c79efa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 23 Nov 2016 16:53:31 +0200 Subject: Implement value type propagation on expansion Currently, we only propagate types of sole, unquoted expansions (variable, function call, or eval context), similar to NULL. To untypify the value, simply quote it. --- unit-tests/function/driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unit-tests/function/driver.cxx') diff --git a/unit-tests/function/driver.cxx b/unit-tests/function/driver.cxx index 6677c24..3dea374 100644 --- a/unit-tests/function/driver.cxx +++ b/unit-tests/function/driver.cxx @@ -33,7 +33,7 @@ namespace build2 f["fail"] = []() {fail << "failed" << endf;}; f["fail_arg"] = [](names a) {return convert (move (a[0]));}; - f["null"] = [](names* a) {return a == nullptr;}; + f["nullable"] = [](names* a) {return a == nullptr;}; f["optional"] = [](optional a) {return !a;}; f["dummy0"] = []() {return "abc";}; -- cgit v1.1