[vala/wip/transform: 98/107] Fix string templates
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 98/107] Fix string templates
- Date: Mon, 7 Jan 2019 09:56:57 +0000 (UTC)
commit c645ee4ad547b84b6cb9b7ba9439d64ac6050dfa
Author: Luca Bruno <luca bruno immobiliare it>
Date: Mon Jul 7 09:57:08 2014 +0200
Fix string templates
vala/valacodetransformer.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valacodetransformer.vala b/vala/valacodetransformer.vala
index c2c84a5d1..70b9aa17b 100644
--- a/vala/valacodetransformer.vala
+++ b/vala/valacodetransformer.vala
@@ -295,7 +295,7 @@ public class Vala.CodeTransformer : CodeVisitor {
}
public Expression stringify (Expression expr) {
- if (expr.value_type.data_type != null && expr.value_type.data_type.is_subtype_of
(context.analyzer.string_type.data_type)) {
+ if (expr.value_type != null && expr.value_type.data_type != null &&
expr.value_type.data_type.is_subtype_of (context.analyzer.string_type.data_type)) {
return expr;
} else {
return expression (@"%?.to_string ()", {expr});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]