mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
189 B
C#
18 lines
189 B
C#
using System;
|
|
|
|
class Program
|
|
{
|
|
Object lck = new Object();
|
|
|
|
void f()
|
|
{
|
|
lock (this) // Not OK
|
|
{
|
|
}
|
|
|
|
lock (lck) // OK
|
|
{
|
|
}
|
|
}
|
|
}
|