From cbdd49b4a8bcff11c0bda12049346d6375d2c18c Mon Sep 17 00:00:00 2001 From: Jonathan Worthington Date: Tue, 19 Oct 2010 01:12:57 +0200 Subject: [PATCH] [dotnet] Out with one bad hack, in with a slightly less bad one for undefined scalars. --- common/NQP/NQPSetting.pm | 4 ++++ dotnet/compiler/Actions.pm | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/NQP/NQPSetting.pm b/common/NQP/NQPSetting.pm index 4bda6bd..9453fb3 100644 --- a/common/NQP/NQPSetting.pm +++ b/common/NQP/NQPSetting.pm @@ -208,3 +208,7 @@ sub ok($check, $diag) { print("ok "); say($count); } + +# XXX Bad hack, we'll replace this later. +knowhow Any { +} diff --git a/dotnet/compiler/Actions.pm b/dotnet/compiler/Actions.pm index 0c12989..abaa22f 100644 --- a/dotnet/compiler/Actions.pm +++ b/dotnet/compiler/Actions.pm @@ -35,8 +35,7 @@ sub vivitype($sigil) { ) } else { - # XXX This is REALLY wrong... - undef + PAST::Var.new( :name('Any'), :scope('lexical') ) } }