mirror of
https://github.com/github/codeql.git
synced 2026-02-24 19:03:50 +01:00
9 lines
258 B
Python
9 lines
258 B
Python
class Point:
|
|
def __init__(val, x, y): # BAD: first parameter is mis-named 'val'
|
|
val._x = x
|
|
val._y = y
|
|
|
|
class Point2:
|
|
def __init__(self, x, y): # GOOD: first parameter is correctly named 'self'
|
|
self._x = x
|
|
self._y = y |