https://bugzilla.gnome.org/show_bug.cgi?id=629593
objects/bug624594.vala \
objects/bug626038.vala \
objects/bug628639.vala \
+ objects/bug629593.vala \
objects/bug631267.vala \
objects/bug634782.vala \
objects/bug641418-1.test \
--- /dev/null
+public class Foo {
+ protected int thing_to_lock_on;
+ public int other_variable;
+
+ public Foo () {
+ other_variable = 0;
+ }
+
+ public void run () {
+ lock (thing_to_lock_on) {
+ other_variable = 1;
+ }
+ }
+}
+
+public class Bar {
+ protected class int thing_to_lock_on;
+ public int other_variable;
+
+ public Bar () {
+ other_variable = 0;
+ }
+
+ public void run () {
+ lock (thing_to_lock_on) {
+ other_variable = 1;
+ }
+ }
+}
+
+void main () {
+}