After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783928 - valac thinks variable is a type
valac thinks variable is a type
Status: RESOLVED DUPLICATE of bug 790648
Product: vala
Classification: Core
Component: Parser
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
: 787134 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-06-18 17:28 UTC by Ben
Modified: 2017-11-21 08:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ben 2017-06-18 17:28:44 UTC
Source: https://github.com/steveno/balistica/tree/aa04e8c1977921308d537e76aa02828a7ecc07b5

The error:
/home/ben/dev/balistica/src/libbalistica/atmosphere.vala:37.61-37.76: error: The type name `RelativeHumidity' could not be found
		 double FRH = 0.995 * (Pressure / (Pressure - (0.3783) * (RelativeHumidity) * VPw)) ;
		                                                          ^^^^^^^^^^^^^^^^

However, the variable is defined: https://github.com/steveno/balistica/blob/aa04e8c1977921308d537e76aa02828a7ecc07b5/src/libbalistica/atmosphere.vala#L37
Comment 1 Rico Tzschichholz 2017-06-18 17:44:40 UTC
Do not overuse parentheses!

double FRH = 0.995 * (Pressure / (Pressure - (0.3783 * RelativeHumidity * VPw)));
Comment 2 Rico Tzschichholz 2017-10-07 10:21:01 UTC
*** Bug 787134 has been marked as a duplicate of this bug. ***
Comment 3 Rico Tzschichholz 2017-11-21 08:13:18 UTC

*** This bug has been marked as a duplicate of bug 790648 ***