Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • vala vala
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 769
    • Issues 769
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 73
    • Merge requests 73
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • valavala
  • Issues
  • #57
Closed
Open
Issue created Nov 10, 2009 by Bugzilla@bugzilla-migration💬Reporter

Vapi generation: No full namespace for default parameters when based on constant

Submitted by Jan-Jaap van der Geer

Link to original bug (#601461)

Description

Assume this vapi:

namespace Test
{
  public const int ConstInt;
}

and this class:

using Test;

public class TestClass
{
  public void TestMethod(int someInt = ConstInt)
  {
  }
  public static void main()
  {
  }
}

Generating a vapi of this class gives:

public void TestMethod (int someInt = ConstInt);

"ConstInt" makes no sense in this context, it should have been "Test.ConstInt" (or some using-statements).

Version: 0.35.x

Edited Jul 15, 2020 by Rico Tzschichholz
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking