SI-8411 match desugared partial functions

review @xeno-by /cc @vladimirnik