Skip to content

GitLab

  • Menu
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 734
    • Issues 734
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 55
    • Merge requests 55
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & 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
  • GNOME
  • valavala
  • Issues
  • #1043

Closed
Open
Created Jul 21, 2020 by Rico Tzschichholz@ricotzMaintainer

Segfault with with-statement

class Foo {
	public signal void manam ();

	public virtual int foo () {
		return 23;
	}
}

class Bar : Foo {
	public override int foo () {
		return 42;
	}
}

void main () {
	var foo = new Foo ();
	var bar = new Bar ();

	with (foo) {
		manam.connect (() => {
			assert (foo () == 23);
		});
		with (bar) {
			manam.connect (() => {
				assert (foo () == 42);
			});
		}
	}

	foo.manam ();
	bar.manam ();
}
Edited Jul 21, 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