mirror of
https://github.com/github/codeql.git
synced 2025-12-26 05:36:32 +01:00
9 lines
247 B
Python
9 lines
247 B
Python
class Point:
|
|
def __init__(val, x, y): # first argument is mis-named 'val'
|
|
val._x = x
|
|
val._y = y
|
|
|
|
class Point2:
|
|
def __init__(self, x, y): # first argument is correctly named 'self'
|
|
self._x = x
|
|
self._y = y |