summaryrefslogtreecommitdiff
path: root/vala
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2010-04-09 21:42:17 +0200
committerJürg Billeter <j@bitron.ch>2010-04-27 11:12:24 +0200
commita722c9be20cdbb61adafbe61c5f2c7653675bd8d (patch)
treec4d6d01bbb3b8e49866aacca1f6db80d5798a581 /vala
parent7aba22e37c306d3e53a3937827903796e808dd58 (diff)
downloadvala-a722c9be20cdbb61adafbe61c5f2c7653675bd8d.tar.gz
GRegex is available only in the GObject profile
Fixes bug 615321.
Diffstat (limited to 'vala')
-rw-r--r--vala/valasemanticanalyzer.vala3
1 files changed, 1 insertions, 2 deletions
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index 54e6ced91..5f1625dae 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -177,8 +177,6 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
bool_type = new BooleanType ((Struct) root_symbol.scope.lookup ("bool"));
string_type = new ObjectType ((Class) root_symbol.scope.lookup ("string"));
- regex_type = new ObjectType ((Class) root_symbol.scope.lookup ("GLib").scope.lookup ("Regex"));
-
short_type = new IntegerType ((Struct) root_symbol.scope.lookup ("short"));
ushort_type = new IntegerType ((Struct) root_symbol.scope.lookup ("ushort"));
int_type = new IntegerType ((Struct) root_symbol.scope.lookup ("int"));
@@ -218,6 +216,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
gvaluearray_type = new ObjectType ((Class) glib_ns.scope.lookup ("ValueArray"));
gerror_type = (Class) glib_ns.scope.lookup ("Error");
+ regex_type = new ObjectType ((Class) root_symbol.scope.lookup ("GLib").scope.lookup ("Regex"));
} else if (context.profile == Profile.DOVA) {
var dova_ns = root_symbol.scope.lookup ("Dova");