[vala] Set target_type for default arguments to fix delegate parameters
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Set target_type for default arguments to fix delegate parameters
- Date: Thu, 21 Oct 2010 19:31:35 +0000 (UTC)
commit 9e8cbb17d2f4f530c44d97a42875eae2a778925c
Author: Jürg Billeter <j bitron ch>
Date: Thu Oct 21 21:28:39 2010 +0200
Set target_type for default arguments to fix delegate parameters
vala/valaformalparameter.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaformalparameter.vala b/vala/valaformalparameter.vala
index 7c0cf57..225f73e 100644
--- a/vala/valaformalparameter.vala
+++ b/vala/valaformalparameter.vala
@@ -252,6 +252,7 @@ public class Vala.FormalParameter : Variable {
}
if (initializer != null) {
+ initializer.target_type = variable_type.copy ();
initializer.check (analyzer);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]